package com.tuanzi.loan.web.lazy.wallet;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.wallet.LoanUserWalletWithdrawRecordService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.wallet.LoanUserWalletWithdrawRecordRequest;
import com.tuanzi.loan.vo.response.wallet.LoanUserWalletWithdrawRecordResponse;

public class LoanUserWalletWithdrawRecordLazyDataModel extends BaseLazyDataModel<LoanUserWalletWithdrawRecordRequest, LoanUserWalletWithdrawRecordResponse> {

	
	private static final long serialVersionUID = 9058910196936612092L;
	
	private LoanUserWalletWithdrawRecordService LoanUserWalletWithdrawRecordService = SpringContextHolder.getBean(LoanUserWalletWithdrawRecordService.class);

	public LoanUserWalletWithdrawRecordLazyDataModel(LoanUserWalletWithdrawRecordRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<LoanUserWalletWithdrawRecordResponse> doLoad(
			PageSearcher<LoanUserWalletWithdrawRecordRequest> pageSearcher) {
		return LoanUserWalletWithdrawRecordService.list(pageSearcher);
	}

}
